/* 登录页面样式 */
.login-container {
  min-height: 100vh;
  background-color: #ffffff;
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  position: relative;
}

/* 应用标题区域 */
.app-header {
  position: relative;
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.title-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.15);
  animation: float 4s ease-in-out infinite;
}

.bubble-1 {
  width: 30px;
  height: 30px;
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.bubble-2 {
  width: 20px;
  height: 20px;
  top: 35%;
  right: 20%;
  animation-delay: 1.5s;
}

.bubble-3 {
  width: 25px;
  height: 25px;
  top: 55%;
  left: 10%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) scale(1); 
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-15px) scale(1.1); 
    opacity: 0.8;
  }
}

.app-title {
  font-size: 36px;
  font-weight: 600;
  color: #4A90E2;
  margin: 0;
  position: relative;
  z-index: 2;
  letter-spacing: 2px;
}

/* 表单容器 */
.form-container {
  padding: 20px;
  background-color: #ffffff;
}

/* 手机号输入框 */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 16px;
  background-color: #ffffff;
  margin-bottom: 20px;
  height: 56px;
  transition: border-color 0.3s ease;
}

.phone-input-wrapper:focus-within {
  border-color: #4A90E2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.country-code {
  color: #666;
  font-size: 16px;
  margin-right: 12px;
  font-weight: 500;
  min-width: 40px;
}

.phone-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: #333;
}

.phone-input::placeholder {
  color: #999;
}

/* 验证码输入框 */
.code-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.code-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  font-size: 16px;
  background-color: #ffffff;
  height: 56px;
  transition: border-color 0.3s ease;
}

.code-input:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
  outline: none;
}

.code-input::placeholder {
  color: #999;
}

.get-code-button {
  background-color: #4A90E2;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 120px;
  height: 56px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.get-code-button:hover:not(:disabled) {
  background-color: #357ABD;
  transform: translateY(-1px);
}

.get-code-button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* 登录按钮 */
.login-button-wrapper {
  padding: 0 20px 20px;
}

.login-button {
  background-color: #4A90E2;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 600;
  height: 56px;
  width: 100%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-button:hover:not(:disabled) {
  background-color: #357ABD;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.login-button:disabled {
  background-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 协议条款 */
.agreement-wrapper {
  display: flex;
  align-items: flex-start;
  padding: 0 20px 20px;
  gap: 8px;
}

.agreement-checkbox {
  margin-top: 2px;
  flex-shrink: 0;
}

.agreement-text {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  flex: 1;
}

.agreement-link {
  color: #4A90E2;
  text-decoration: none;
  font-weight: 500;
}

.agreement-link:hover {
  text-decoration: underline;
}

/* 覆盖 antd-mobile 默认样式 */
.adm-form-item {
  margin-bottom: 0;
}

.adm-form-item-label {
  display: none;
}

.adm-input {
  --background: transparent;
  --border: none;
  --border-radius: 0;
  --padding: 0;
  --font-size: 16px;
}

.adm-button {
  --border-radius: 8px;
  --border: none;
}

.adm-checkbox {
  --size: 16px;
  --border-radius: 50%;
}

.adm-checkbox-icon {
  border-radius: 50%;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .app-title {
    font-size: 32px;
  }
  
  .form-container {
    padding: 16px;
  }
  
  .login-button-wrapper {
    padding: 0 16px 16px;
  }
  
  .agreement-wrapper {
    padding: 0 16px 16px;
  }
  
  .phone-input-wrapper,
  .code-input,
  .get-code-button,
  .login-button {
    height: 52px;
  }
}

@media (max-width: 375px) {
  .app-title {
    font-size: 28px;
  }
  
  .bubble-1 {
    width: 25px;
    height: 25px;
  }
  
  .bubble-2 {
    width: 18px;
    height: 18px;
  }
  
  .bubble-3 {
    width: 22px;
    height: 22px;
  }
}